package com.hongxun.design.jungong.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.UUID;

/**
 * Created by cqcqwu on 2017/8/3.
 * 材料明细表
 */

public class MaterialDetail implements Parcelable {
    private String uuid;
    private String material_number;//key
    private String type;//类别
    private String name;//名称
    private String spec;//型号
    private String num = "0";//数量
    private String unit;//单位
    private int sort;//分类排序

    public MaterialDetail() {
    }

    protected MaterialDetail(Parcel in) {
        uuid = in.readString();
        material_number = in.readString();
        type = in.readString();
        name = in.readString();
        spec = in.readString();
        num = in.readString();
        unit = in.readString();
        sort = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(uuid);
        dest.writeString(material_number);
        dest.writeString(type);
        dest.writeString(name);
        dest.writeString(spec);
        dest.writeString(num);
        dest.writeString(unit);
        dest.writeInt(sort);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<MaterialDetail> CREATOR = new Creator<MaterialDetail>() {
        @Override
        public MaterialDetail createFromParcel(Parcel in) {
            return new MaterialDetail(in);
        }

        @Override
        public MaterialDetail[] newArray(int size) {
            return new MaterialDetail[size];
        }
    };

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getMaterial_number() {
        return material_number;
    }

    public void setMaterial_number(String material_number) {
        this.material_number = material_number;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }
}
